{%include file="m.index.header.tpl.php"%}
<!--主体部分-->

<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-right:10%;">
  </div>
  <div class="row" style="margin-top:10px;">
    <form name="myform" action="" method="get">	
      <div class="col-sm-12 distance hierarchy2">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">学生姓名：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="student_name" value="{%$student_name%}">
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy2">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">开始时间:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$from%}" id="from" name="from">
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy2">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">结束时间:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$to%}" id="to" name="to">
          </div>
        </div>
      </div>
      <div class="col-xs-12 distance" >
      <div class="form-group  text-center" style="padding-top:0px;">
	  <input type="hidden" name="a" value="notice.schoollist">
      <button type="submit" class="btn btn-success absolutely ">
      搜索
      </button>
      </div>
      </div>
    </form>
  </div>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
  {%foreach from=$notice_lists key=key item=value%}
    <table class="table table-striped table-bordered "  id="middles">
      <tr>
        <td>学生姓名</td>
        <td>{%$value.student_name%}</td>
      </tr>
      <tr>
        <td>家长姓名</td>
        <td>{%$value.notice_form%}</td>
      </tr>
      <tr>
        <td>标题</td>
        <td>{%$value.notice_title%}</td>
      </tr>
	  <tr>
        <td>内容</td>
        <td>{%$value.notice_content%}</td>
      </tr>
	  <tr>
        <td>时间</td>
        <td>{%$value.create_time%}</td>
      </tr>
      <tr>
        <td>操作</td>
        <td ><a onClick="show('{%$value.student_name%}','{%$value.notice_id%}')" href="" class="btn btn-success " data-toggle="modal" data-target="#myModal"  >编辑 </a>
		<a type="button" class="btn btn-warning  " href="index.php?a=notice.familydetails&notice_type=hudong&notice_id={%$value.notice_id%}" >查看</a>
      </tr>
	  </table>
	{%/foreach%}  
 
          </div>
        </div>
      </div>      
      <!-- Modal  end --> 
  </div>

</div>
<!--container  end--> 

<!--主体部分  end--> 
<!--底部-->
  <!--弹出框-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
         <form action="" method="post">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">家长反馈</h4>
              </div>
              <div class="modal-body">
                   <span id="bbb">姓名：</span><span id="ming"></span>
                    <div class="form-group" style="margin-top:16px;">
                        <p>回复内容:</p>
                        <textarea class="form-control" rows="3" name="notice_contents" id="fff"></textarea>
                    </div>
           
              </div>
              <div class="modal-footer center-block">
			 
			    <input type="hidden" name="notice_id" value="" id="ccc">
                <button type="submit" class="btn btn-primary">确 定</button>
              </div>
          </form>
    </div>
  </div>
</div>
{%include file="m.index.footer.tpl.php"%}
<!--日历--> 
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
</script>
 <script>

function show(a,b){
	
	$("#bbb").html(a);
	$("#ccc").val(b);
	
	}

</script>